package com.tkmybatis.controller;

import lombok.extern.slf4j.Slf4j;
import lombok.extern.slf4j.XSlf4j;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * Project_name: tk_mybatis_demo
 * Company: 新致软件
 * Author: ZHU YU WEI
 * Date: Created in 18:58 2021/4/5.
 * Description:
 * Modified By:
 */


@RestController
@RequestMapping("/web")
@Slf4j
public class WebController {


    /**
     * 关于前台给后台传值是时间的问题
     * @param date
     * @return
     */
    @RequestMapping("/index")
    public String index(@RequestParam("date") Date date){
        log.info("date===="+date);
        return "index";
    }

}
